<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use Session;

class TestController extends Controller
{
    //
    public function setsession(Request $request){
        $user = array('nick'=>'zhangsan','age'=>20);
        Session::put('user',$user);
        Session::save();

        echo 1111;
        exit;
    }

    public function getsession(Request $request){
        $info = Session::get('user');
        var_dump($info);
        exit;
    }
}
